package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hc.domain.UserBlogReward;
import com.hc.vo.DaShangVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 打赏
 */
@Mapper
public interface UserBlogRewardMapper extends BaseMapper<UserBlogReward> {

    @Insert("INSERT INTO tb_da_shang (user_id, blog_id, hcoin, create_time) VALUES (#{daShangVO.userId} ,#{daShangVO.blogId} ,#{daShangVO.hcoin} ,now())")
    int insertDaShang(@Param("daShangVO") DaShangVO daShangVO);


}
